<%@ page import="institutional.Course" %>



			<div class="control-group fieldcontain ${hasErrors(bean: courseInstance, field: 'professor', 'error')} required">
				<label for="professor" class="control-label"><g:message code="course.professor.label" default="Professor" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:select id="professor" name="professor.id" from="${user.Professor.list()}" optionKey="id" required="" value="${courseInstance?.professor?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: courseInstance, field: 'professor', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: courseInstance, field: 'subject', 'error')} required">
				<label for="subject" class="control-label"><g:message code="course.subject.label" default="Subject" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:select id="subject" name="subject.id" from="${institutional.Subject.list()}" optionKey="id" required="" value="${courseInstance?.subject?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: courseInstance, field: 'subject', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: courseInstance, field: 'size', 'error')} required">
				<label for="size" class="control-label"><g:message code="course.size.label" default="Size" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="size" required="" value="${courseInstance.size}"/>
					<span class="help-inline">${hasErrors(bean: courseInstance, field: 'size', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: courseInstance, field: 'timetable', 'error')} required">
				<label for="timetable" class="control-label"><g:message code="course.timetable.label" default="Timetable" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:textArea style="width: 30%;" rows="4" name="timetable" required="" value="${courseInstance?.timetable}"/>
					<span class="help-inline">${hasErrors(bean: courseInstance, field: 'timetable', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: courseInstance, field: 'available', 'error')} ">
				<label for="available" class="control-label"><g:message code="course.available.label" default="Available" /></label>
				<div class="controls">
					<bs:checkBox name="available" value="${courseInstance?.available}" />
					<span class="help-inline">${hasErrors(bean: courseInstance, field: 'available', 'error')}</span>
				</div>
			</div>
			